package com.ny.test;

public class Zfb extends Pay{
    double M = 250.4;
    @Override
    public void pay(double money) {
        if(M>money){
            System.out.println("Zfb支付了"+money+"元");
            M = M - money;
            System.out.println("余额还有"+M+"元");
        }
        else{
            System.out.println("余额不足");
        }
    }
}